<?php
/**
 * 
 * @App	
 * @Group 
 * @Action SwooleTcpServerAction
 * @author lilei
 * @date 2018年11月22日
 * 
 *
 */
namespace app\crontab\controller\swoole;
use app\common\service\swoole\SwooleHttpServer;
use app\common\service\swoole\SwooleTcpPython;
use app\crontab\controller\CrontabCommon;

class Tcp extends CrontabCommon {

    /**
     * @var SwooleTcpPython
     */
    public $SwooleTcpPython;

    /**
     * @var SwooleHttpServer
     */
    public $SwooleHttpServer;

	public function index() {
        $this->SwooleTcpPython = new SwooleTcpPython( );
        $this->SwooleTcpPython->start();
        return;
	}

    /**
     * http请求回调
     */
	public function index_http()
    {
        $this->SwooleHttpServer = new SwooleHttpServer( );
        $this->SwooleHttpServer->start();
        return;
    }

}